/**
 * @author: giscafer ,https://github.com/giscafer
 * @date: 2018-12-03 10:44:04
 * @description: 
 */

var Index = require('../controller/web/index')

module.exports = function (app) {
  app.get('/', Index.index)

  // 首页菜单
  app.get('/fangtuan', Index.fangtuan)
  app.get('/has_saled', Index.has_saled)
  app.get('/factory', Index.factory)
  app.get('/promote', Index.promote)
  app.get('/special-benifit', Index.specialBenifit)

  app.get('/logout_by_home', Index.logout_by_home)
  app.get('/contact_us', Index.contact_us)

  app.get('/web/get_products', Index.get_products)
  app.post('/web/get_products_by_Category', Index.get_products_by_Category)
  app.post('/web/get_products_by_status', Index.get_products_by_status)

  // 产品详情
  app.get('/products_detail/:id', Index.get_products_detail)
  app.post('/products_detail/:id', Index.post_products_detail)
  app.get('/products_details/:id', Index.get_products_details)
  app.post('/products_details/:id', Index.post_products_details)

  app.post('/post_feedback', Index.post_feedback);
  app.get('/github', Index.github);
}
